package com.qmrz.utils.sign;


public class SignUtil {

    public static String createSign(String jsonString, String appSecret) {
        String data = SHA1.getHashValue(jsonString);
        String key = SHA1.getHashValue(appSecret);
        key = key.substring(0, 32);
        byte[] rb = AES.encrypt_ECB_PKCS5Padding(Util.hexToByte(key), Util.hexToByte(data));
        String r = Util.byteToHex(rb);
        return r;
    }

}
